'''
Created on Nov 26, 2010

@author: philip
'''
from django.db import models

class Link(models.Model):
    communityId = models.CharField(max_length=50)
    title = models.CharField(max_length=50)
    url = models.CharField(max_length=50) 
    
    @staticmethod
    def toJSON(i):
        return {"id":i.id,"title":i.title,"url":i.url}   